package com.zff.rental.utils.sql.impl;

import com.zff.rental.utils.sql.Condition;
import com.zff.rental.utils.sql.JoinConditionConnector;
import com.zff.rental.utils.sql.On;

/**
 * @author HCY
 */
class OnImpl extends SqlContextHolder implements On {
    public OnImpl(SqlContext sqlContext) {
        super(sqlContext);
    }

    @Override
    public <V> JoinConditionConnector on(Condition<V> sql) {
        sqlContext.getSql().append(" ON ").append(sql.toSql());
        return sqlContext.getJoinConditionConnector();
    }
}
